.class public Lcom/xingbook/group/adapter/aa;
.super Lcom/xingbook/group/adapter/t;


# instance fields
.field private f:F

.field private g:F

.field private h:F

.field private i:F

.field private j:F

.field private k:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/group/adapter/v;)V
    .locals 4

    const/4 v3, 0x0

    const/high16 v2, 0x420c

    invoke-direct {p0, p1, p2}, Lcom/xingbook/group/adapter/t;-><init>(Landroid/app/Activity;Lcom/xingbook/group/adapter/v;)V

    invoke-static {p1}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    mul-float v1, v2, v0

    iput v1, p0, Lcom/xingbook/group/adapter/aa;->f:F

    mul-float v1, v2, v0

    iput v1, p0, Lcom/xingbook/group/adapter/aa;->g:F

    const/high16 v1, 0x41e0

    mul-float/2addr v1, v0

    iput v1, p0, Lcom/xingbook/group/adapter/aa;->h:F

    mul-float v1, v2, v0

    iput v1, p0, Lcom/xingbook/group/adapter/aa;->i:F

    const/high16 v1, 0x41c8

    mul-float/2addr v0, v1

    iput v0, p0, Lcom/xingbook/group/adapter/aa;->j:F

    iget-object v0, p0, Lcom/xingbook/group/adapter/aa;->e:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f02015c

    invoke-static {v0, v1}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v2, p0, Lcom/xingbook/group/adapter/aa;->e:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    iput-object v1, p0, Lcom/xingbook/group/adapter/aa;->k:Landroid/graphics/drawable/Drawable;

    iget-object v1, p0, Lcom/xingbook/group/adapter/aa;->k:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    invoke-virtual {v1, v3, v3, v2, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    return-void
.end method


# virtual methods
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 11

    const/4 v4, 0x1

    const v10, -0x666667

    const v9, -0x99999a

    const/4 v6, 0x0

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/xingbook/group/adapter/aa;->getCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_0

    invoke-super {p0, p1, p2, p3}, Lcom/xingbook/group/adapter/t;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :goto_0
    return-object p2

    :cond_0
    if-eqz p2, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/xingbook/group/adapter/ab;

    if-eqz v0, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/adapter/ab;

    move-object v9, v0

    :goto_1
    invoke-virtual {p0, p1}, Lcom/xingbook/group/adapter/aa;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    move-object v8, v0

    check-cast v8, Lcom/xingbook/group/a/f;

    iget-object v0, v8, Lcom/xingbook/group/a/f;->h:Lcom/xingbook/group/a/d;

    iget-object v0, v0, Lcom/xingbook/group/a/d;->f:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/group/b/d;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, v9, Lcom/xingbook/group/adapter/ab;->a:Landroid/widget/ImageView;

    const v2, 0x7f020057

    const/4 v5, 0x0

    move v7, v4

    invoke-static/range {v0 .. v7}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZFLcom/xingbook/c/f;Z)V

    iget-object v0, v9, Lcom/xingbook/group/adapter/ab;->b:Landroid/widget/TextView;

    iget-object v1, v8, Lcom/xingbook/group/a/f;->h:Lcom/xingbook/group/a/d;

    invoke-virtual {v1}, Lcom/xingbook/group/a/d;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v9, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget-object v1, v8, Lcom/xingbook/group/a/f;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v9, Lcom/xingbook/group/adapter/ab;->f:Landroid/widget/TextView;

    iget-wide v1, v8, Lcom/xingbook/group/a/f;->j:J

    invoke-static {v1, v2}, Lcn/a/a/d/j;->b(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v9, Lcom/xingbook/group/adapter/ab;->c:Landroid/widget/TextView;

    invoke-virtual {v8}, Lcom/xingbook/group/a/f;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v9, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    iget-object v1, v8, Lcom/xingbook/group/a/f;->k:Lcom/xingbook/group/a/h;

    invoke-virtual {v1}, Lcom/xingbook/group/a/h;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_1
    new-instance v1, Lcom/xingbook/group/adapter/ab;

    invoke-direct {v1, p0}, Lcom/xingbook/group/adapter/ab;-><init>(Lcom/xingbook/group/adapter/aa;)V

    iget-object v0, p0, Lcom/xingbook/group/adapter/aa;->e:Landroid/content/Context;

    const v2, 0x7f03001e

    invoke-static {v0, v2, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0a00fc

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->c:I

    invoke-virtual {v0, v3, v2, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    const v0, 0x7f0a00fd

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->a:Landroid/widget/ImageView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->a:Landroid/widget/ImageView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v7, p0, Lcom/xingbook/group/adapter/aa;->a:I

    div-int/lit8 v7, v7, 0x2

    iget v8, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v2, v5, v7, v8}, Landroid/widget/ImageView;->setPadding(IIII)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->a:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->d:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->a:I

    mul-int/lit8 v5, v5, 0x3

    div-int/lit8 v5, v5, 0x2

    add-int/2addr v2, v5

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->d:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->a:I

    mul-int/lit8 v5, v5, 0x2

    add-int/2addr v2, v5

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    const v0, 0x7f0a00fe

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->b:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->b:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v2, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->b:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->f:F

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->b:Landroid/widget/TextView;

    const v2, -0x376482

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const v0, 0x7f0a0100

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->c:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->c:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->g:F

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->c:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v2, v5, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    const v0, 0x7f0a0101

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->i:F

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->b:I

    iget v7, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v8, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v2, v5, v7, v8}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->d:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v3, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    const v0, 0x7f0a0102

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    iget v5, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v2, v3, v5}, Landroid/view/View;->setPadding(IIII)V

    const v0, 0x7f0a0103

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->h:F

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v10}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/group/adapter/aa;->k:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v2, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->e:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v3, v2, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    const v0, 0x7f0a00ff

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/group/adapter/ab;->f:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v10}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->f:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->j:F

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, v1, Lcom/xingbook/group/adapter/ab;->f:Landroid/widget/TextView;

    iget v2, p0, Lcom/xingbook/group/adapter/aa;->a:I

    invoke-virtual {v0, v3, v3, v2, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v9, v1

    goto/16 :goto_1
.end method
